

var  rusult = "";
var productBrand = "";
var productSpecs = "";
var productAge = "";
var productPrice = "";

$(".select_nav").click(function(){
    console.log("select_nav>>>>>>>>>>>>>>>> ");
    var target = event.target;
    console.log("target ====== "+ target);

    var ele = target.textContent;


    if(ele.nodeName === 'A') {
        var otherEles = ele.parentElement.children;

        console.log("otherEles:" + otherEles);
        for (var i = 0; i < otherEles.length; i++) {
            otherEles[i].classList.remove("selected");
        }
        ele.classList.add("selected");

        var selectedValue = ele.innerText;
        console.log("被选中的元素值：" + selectedValue);

        if (ele.parentElement.className === "nc_items brand") {
            if (selectedValue !== "不限"){
                brand = selectedValue;
            }
            else
                brand = null;
            arr[0] = brand;
        }
    }
    console.log("ssssss=" + ele);
})